How to scroll to bottom of ListBox

69

How to scroll to bottom of ListBox -

int visibleItems = listBox.ClientSize.Height / listBox.ItemHeight;
listBox.TopIndex = Math.Max(listBox.Items.Count - visibleItems + 1, 0);

Comments

Submit
0 Comments